package book_management.operation.impl;
import book_management.book.BookList;
import book_management.operation.IOperation;

public class FindOperation implements IOperation {
    @Override
    public void work(BookList bookList) {
        System.out.println("您现在进行的是查找书操作~");
        System.out.println("请输入您要查找的书");
        String booksName = scanner.next();
        if (bookList.isContains(booksName)) {
            System.out.println("图书馆有该书~");
        }else {
            System.out.println("该书还未上架~");
        }
    }
}
